package cn.b.sky.mes.qm.dao;

import java.util.List;

import cn.b.sky.mes.qm.model.Repairmethod;
import cn.b.sky.mes.qm.model.condition.RepairmethodCondition;
import org.apache.ibatis.annotations.Param;

public interface RepairmethodDao {
  List<Repairmethod> selectRepairmethodByCondition(RepairmethodCondition condition);

  int selectRepairmethodCountByCondition(RepairmethodCondition condition);

  Repairmethod selectRepairmethodByPk(@Param("siteCode") String siteCode,
      @Param("repairmethodCode") String repairmethodCode);

  void insertRepairmethod(Repairmethod method);

  void updateRepairmethod(Repairmethod method);

  void deleteRepairmethodByPk(@Param("siteCode") String siteCode, @Param("repairmethodCode") String repairmethodCode);

  /**
   * 
   * <strong>Title : getRepairmethodsForSuggest<br></strong>
   * <strong>Description : </strong>维修方法搜索建议<br> 
   * <strong>Create on : 2016年4月11日 下午8:34:47<br></strong>
   * <p>
   * @param condition
   * @return
   * List<Repairmethod>
   * @throws 
   * @author zhaoxin01<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  List<Repairmethod> getRepairmethodsForSuggest(RepairmethodCondition condition);
}
